package com.cbtx.tablet.net

import com.cbtx.tablet.bean.*
import io.reactivex.Observable
import retrofit2.http.*

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/1 2:51 PM
 * desc   :
 */
interface ApiService {
    /**
     * 获取课程信息
     */
    @FormUrlEncoded
    @POST("ckclient/report")
    fun report(@FieldMap map: MutableMap<String, Any?>): Observable<HttpResponse<Report>>

    /**
     * 获取课程信息
     */
    @FormUrlEncoded
    @POST("ckclient/register")
    fun register(@FieldMap map: MutableMap<String, Any>): Observable<HttpResponse<Any>>

    /**
     * 获取藏品列表
     */
    @FormUrlEncoded
    @POST("http://pad.mjcmkj.com/mijingpadadmin/interactive/getTreasure")
    fun getGoodsList(@FieldMap map: MutableMap<String, Any>): Observable<HttpResponse<GoodsInfo>>

    /**
     * 获取应用列表
     */
    @GET("http://pad.mjcmkj.com/app/list/{hotel}?type=2")
    fun getAppId(@Path("hotel") hotelId: Int): Observable<HttpResponse<AppInfoBean>>

    /**
     * 获取应用列表
     */
    @GET("ckclient/appstart/getDeviceStoreInfo?lng=0.0&lat=0.0")
    fun getStoreInfo(): Observable<HttpResponse<StoreInfoBean>>

    /**
     * 屏保
     */
    @GET("http://pad.mjcmkj.com/screenSaver/list/{hotelId}?type=2")
    fun getBanner(@Path("hotelId") hotelId: Int): Observable<HttpResponse<List<ScreenSaverBean>>>

    /**
     * 获取应用列表
     */
    @FormUrlEncoded
    @POST("ckclient/getUpgrade")
    fun getUpgrade(@FieldMap map: MutableMap<String, Any>): Observable<HttpResponse<MutableList<UpgradeInfoEntity>>>

}